﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web;

namespace BMS.Models
{
    public class FMModel
    {
        public int FMID { get; set; }
        [Required]
        [StringLength(3, ErrorMessage = "The {0} must be between 2 - 3 characters long.", MinimumLength = 2)]
        [Display(Name = "FM Code")]
        public string FMCode { get; set; }
        [Display(Name = "FM Name")]
        public string FMName { get; set; }
        [Display(Name = "Attention To")]
        [StringLength(500, ErrorMessage = "The {0} must be between 1 - 500 characters long.", MinimumLength = 1)]
        public string AttentionTo { get; set; }
        [StringLength(500, ErrorMessage = "The {0} must be between 1 - 500 characters long.", MinimumLength = 1)]
        [Display(Name = "Company name")]
        public string CompanyName { get; set; }
        public DateTime FMCreationDate { get; set; }
    }
}